<template>
  <!-- <div class="h-100p">
    <div v-if="viewType == 'showDatav'">
      <el-button @click="createDatav">创建视图</el-button>
    </div>
    <div class="h-100p" v-if="viewType == 'createDatav'">
      <edit-datav @cancel="cancelEdit"></edit-datav>
    </div>
  </div> -->
  <div class="h-100p">
    <!-- <rs-activiti></rs-activiti> -->
  </div>
</template>
<script>

import widgetTypes from './widgetTypes';
import editDatav from './data-view/edit-datav';

export default {
  components: {
    editDatav
  },
  data(){
    return {
      widgetTypes: widgetTypes,
      viewType: 'showDatav'
    }
  },
  mounted() {

  },
  methods: {

    createDatav(){
      this.viewType = 'createDatav';
      // this.$root.$emit('SetBreadcrumbComponent' , {
      //   breadcrumbMarginBottom: 0
      // })
    },

    cancelEdit(){
      this.viewType = 'showDatav';
      this.$root.$emit('SetBreadcrumbComponent' , {})
    }

  }
}
</script>